package com.xc.tjise.TJISE.day05;

public class StringVsStringBuffer {
    private static final String ALPHABET="abcdefghij";

    public static void main(String[] args) {
     //   String s="";
        StringBuffer s = new StringBuffer();  // StringBuilder
        long start =System.currentTimeMillis();//毫秒数
        for (int i=0;i<100000;i++){
     //       s+=ALPHABET;
            s.append(ALPHABET);
        }
        long end=System.currentTimeMillis();
        System.out.println(s.length());
        System.out.println((end-start)+"ms");
    }
}
